Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
… from scan Co-Authored-By: Claude <noreply@anthropic.com>
- @ConditionalOnClass: bean method-level string form, not class-level - ComponentScan example: add back TypeExcludeFilter/AutoConfigurationExcludeFilter - ConditionalOnWebApplication: one class-level guard, not two - remove duplicate '依赖接线' heading Co-Authored-By: Claude <noreply@anthropic.com>
…cker deploy Co-Authored-By: Claude <noreply@anthropic.com>
- business 新增 EmailCodeService:生成/发送/校验验证码(Redis 存码、60s 冷却、5 分钟 TTL、错误次数限制) - 注册接口校验验证码,通过才创建用户;EmailValidator 修复 '+' 别名检查越界 - email 模块幂等发送:idempotencyKey + email_records 唯一索引,防止 Dubbo 默认重试重复发信 - 前端注册页验证码输入 + 60s 倒计时 - 记录 Dubbo 重放问题与幂等设计经验(docs/dev-experiences.md) Co-Authored-By: Claude <noreply@anthropic.com>
- 通知抽象层:NotificationChannel 策略 + AbstractNotificationChannel 模板方法 + 模板渲染 + ChannelRegistry 路由 + NotificationService 门面,当前 EMAIL 直发 Dubbo - P1 异步管道:notification_outbox + RocketMQ Relay/Consumer,幂等复用 messageId (outbox 与业务同事务,Relay 至少一次发布,email 模块唯一索引兜底去重) - EmailCodeService 改经 NotificationService 发信,同步验证码行为与幂等保障不变 - 单测:ChannelRegistry 路由 / 模板渲染 / outbox 映射 / Relay 发布 / submitAsync 幂等键 - RocketMQ docker-compose 部署脚本 + outbox 建表 SQL Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
三个阶段的工作合并 dev → master:
82eacc2):验证码前置注册流程 + email 模块 Dubbo 幂等发送(修复 Dubbo 重试导致重复发信的 Bug)a392214):Channel 策略 + 模板方法 + 本地消息表(Transactional Outbox)+ RocketMQ Relay/Consumer变更内容
OpenBlog-common
OpenBlog-common模块,抽取公共 POJO 与全局异常处理器CommonAutoConfiguration+AutoConfiguration.imports自动注册邮箱注册验证码
EmailCodeService:生成 / 发送 / 校验验证码(Redis 存码、60s 冷却、5min TTL、错误次数限制)idempotencyKey+email_records.idempotency_key唯一索引EmailValidator'+' 别名检查越界 Bug统一通知抽象层 + MQ(P1)
NotificationChannel策略 +AbstractNotificationChannel模板方法 + 模板渲染 + Registry + 门面notification_outbox(与业务同事务)+ RocketMQ Relay / Consumer,幂等复用 messageIdsubmitAsync为未来异步通知的接入点docker/rocketmq/部署脚本 + 建表 SQL验证
mvn -pl OpenBlog-business -am clean package通过git merge-tree检测 master 无冲突(master 已被 dev 历史完全包含)部署注意
sql/migrate-email-records-idempotency-key.sql、sql/notification-outbox.sqldocker/rocketmq/);验证码同步链路不受影响🤖 Generated with Claude Code